package jsen.tool.ddd.demo.domain.brand;

import io.jsen.meta.diff.annotation.MetaFieldAnnotation;
import jsen.tool.ddd.adapter.infrastructure.specification.ISpecification;
import jsen.tool.ddd.demo.domain.base.DomainObject;
import jsen.tool.ddd.domain.AggregateObject;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * @author jsen
 * @date 2021/10/6
 */
@AggregateObject(name = "brand", desc = "业务描述")
@Getter
@Setter
@Builder
public class Brand implements DomainObject {
    private final ISpecification<Brand> strict;
    @MetaFieldAnnotation(uniqueKey = true)
    private Integer id = 1;
    private String name;
    private String logo;
}
